package ip.ejb.sequence;

import java.io.*;

class Block implements Serializable {

  public Block(int start, int end) {
    this.start = start;
    this.end = end;
    current = start;
  }

  public int getNumber() {
    return current++;
  }

  public boolean isEmpty() {
    return current > end;
  }

  private int start;
  private int end;
  private int current;
}